﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Krile.Kernel.Data;

namespace Twinkle.Searchs
{
    public class SearchTwitterDirectMessage : NoneSearchData
    {
        public override string Identification
        {
            get { return Define.PluginId + "_SEARCH_TWITTER_DM"; }
        }

        protected override bool IsMatchedInner(Status status)
        {
            return status is Tweak.TStatus && ((Tweak.TStatus)status).StatusKind == Twinkle.Tweak.TStatus.StatusKinds.DirectMessage;
        }

        public override string Description
        {
            get { return Lang.General.TwitterDirectMessageDescription; }
        }

        public override string Name
        {
            get { return Lang.General.TwitterDirectMessageName; }
        }

        public override object Clone()
        {
            return new SearchTwitterDirectMessage() { Exclude = Exclude };
        }

        public override string Method
        {
            get { return "IsDirectMessage"; }
        }

        public override string Class
        {
            get { return "Twitter"; }
        }
    }
}
